//导入封装好的axios
import request from "./request"
import qs from 'qs'
//定义一个请求精品店数据  export导出 
//定义变量名 const jingpinapi
//()=>以函数返回值的方式,避免自动请求多次
//request前面封装好的axios,.get("请求的具体名称")发送请求,然后赋值给jingpinapi
export const jingpinapi = () => request.get("/products/recommend")
export const logincode = (val) => request.post("/sendSMS", qs.stringify(val))
export const phoneloginAPI = (val) => request.post("/phoneRegin", qs.stringify(val))
//微信登陆
export const WeiXinLoginAPI = (params) => request.post("/wechatUsers/PCLogin",
    qs.stringify(params))
//微信绑定
export const bangdingAPI = (params) => request.post("/wechatUsers/binding",
    qs.stringify(params))